<!--
 @description 经销商合作终止-新增
 @fileName Add.vue
 @author zengqiongying
 @created 2023/04/18 20:46:23
-->
<template>
  <DealerChoice filterType="I" @confirm="onCreat" />
</template>

<script lang="ts">
  import { useRouter } from 'vue-router'
  import DealerChoice from '../dealerChoice/index.vue'
  import { createCustomerChange } from '../mixins/Create'
  export default {
    name: 'DealerInfoTerminationAdd',
    components: { DealerChoice },
    setup() {
      const $router = useRouter()
      const onCreat = (businessData: any) => {
        createCustomerChange(businessData, 'I', (id: string) => {
          $router.replace({
            path: '/dealerTermination/edit',
            query: {
              id
            }
          })
        })
      }
      return {
        onCreat
      }
    }
  }
</script>
<style lang="less" scoped></style>
